package com.ruoyi.stock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单对象 stock_member_order
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public class StockMemberOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private String payMonery;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** 支付日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支付日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payDate;

    /** 服务状态 */
    @Excel(name = "服务状态")
    private Long serviceState;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Long orderState;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单类型 */
    @Excel(name = "订单类型")
    private Long orderType;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String memberCardName;

    /** 商品id */
    @Excel(name = "商品id")
    private Long memberCardId;

    /** 会员天数 */
    @Excel(name = "会员天数")
    private String memberDays;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalFee;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 数量 */
    @Excel(name = "数量")
    private Long totalNum;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPayMonery(String payMonery) 
    {
        this.payMonery = payMonery;
    }

    public String getPayMonery() 
    {
        return payMonery;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setPayDate(Date payDate) 
    {
        this.payDate = payDate;
    }

    public Date getPayDate() 
    {
        return payDate;
    }
    public void setServiceState(Long serviceState) 
    {
        this.serviceState = serviceState;
    }

    public Long getServiceState() 
    {
        return serviceState;
    }
    public void setOrderState(Long orderState) 
    {
        this.orderState = orderState;
    }

    public Long getOrderState() 
    {
        return orderState;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setOrderType(Long orderType) 
    {
        this.orderType = orderType;
    }

    public Long getOrderType() 
    {
        return orderType;
    }
    public void setMemberCardName(String memberCardName) 
    {
        this.memberCardName = memberCardName;
    }

    public String getMemberCardName() 
    {
        return memberCardName;
    }
    public void setMemberCardId(Long memberCardId) 
    {
        this.memberCardId = memberCardId;
    }

    public Long getMemberCardId() 
    {
        return memberCardId;
    }
    public void setMemberDays(String memberDays) 
    {
        this.memberDays = memberDays;
    }

    public String getMemberDays() 
    {
        return memberDays;
    }
    public void setTotalFee(BigDecimal totalFee) 
    {
        this.totalFee = totalFee;
    }

    public BigDecimal getTotalFee() 
    {
        return totalFee;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setTotalNum(Long totalNum) 
    {
        this.totalNum = totalNum;
    }

    public Long getTotalNum() 
    {
        return totalNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("payMonery", getPayMonery())
            .append("orderNum", getOrderNum())
            .append("payDate", getPayDate())
            .append("serviceState", getServiceState())
            .append("orderState", getOrderState())
            .append("userId", getUserId())
            .append("orderType", getOrderType())
            .append("memberCardName", getMemberCardName())
            .append("memberCardId", getMemberCardId())
            .append("memberDays", getMemberDays())
            .append("totalFee", getTotalFee())
            .append("price", getPrice())
            .append("totalNum", getTotalNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
